﻿@inherits Statiq.Razor.StatiqRazorPage<IEnumerable<IDocument>>

@foreach (IDocument sponsor in Model)
{
    <div class="corporate-sponsor-card">
        <figure class="corporate-sponsor-card__thumbnail">
            @if (!String.IsNullOrEmpty(sponsor.GetString(SiteKeys.Logo)))
            {
                <a href="@sponsor.GetString(SiteKeys.Url)" target="_blank">
                    <img src="@sponsor.GetString(SiteKeys.Logo)" alt="@sponsor.GetString(SiteKeys.Name)" />
                </a>
            }
            else
            {
                <img src="sponsor/dot_bot.png" alt="Default Dot Bot Image" />
            }
        </figure>
    </div>
}